<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php 
	session_start();
	include_once 'framework/com.cebuindex.auth/webUser.php';
	include_once 'framework/com.cebuindex.url/url.php';
	include_once 'framework/com.cebuindex.url/controller.php';
	include_once 'framework/com.cebuindex.url/systemGlobals.php';
	include_once 'framework/com.cebuindex.html/wrapper.php';
	include_once 'system/config/main.php';
	include_once 'system/controller/errorController.php';
	$app = new url();
?>
<head>
	<title>sp-framework (php version)</title>
  <style type="text/css">
  	.body{
  		border: 1px solid pink;
  		margin:auto;
  		width: 1000px;
  		text-align: center;
  	}
  	.head{
  		height: 100px;
  	}
  	.foot{
  		height: 40px;
  	}
  	.content{
  		padding-top: 50px;
  		padding-bottom: 50px;
  	}
  	.links{
  		border: 1px solid pink;
  		margin:auto;
  		width: 1000px;
  	}
  	.links span{
  		position: relative;
  		left: 20px;
  	}
  </style>
</head>
<body>
	<div class="body head">
		header
	</div>
	<div class="links">
		<span><?php wrapper::HTML_link(array("label"=>"home","request"=>"site/index"))?> |</span>
		<span>
			<?php wrapper::HTML_link(array("label"=>"login","request"=>"site/login","show"=>webUser::isGuest()))?> 
			<?php wrapper::HTML_link(array("label"=>"logout","request"=>"site/logout","show"=>!webUser::isGuest()))?> 
		</span>
	</div>
	<div class="links">
		<?php if(!webUser::isGuest()) {?>
		modules: <span><?php wrapper::HTML_link(array("label"=>"Crud","request"=>"crud/default/index",))?> </span>
		<?php } ?>
	</div>
	<div class="body content">
		<?php 
			$app->readUrl();
		?>
	</div>
	<div class="body foot">footer</div>
</body>
</html>
